//
//  SCHomeCell.m
//  shangcheng
//
//  Created by Jie Jie on 2019/6/17.
//  Copyright © 2019 张艳江. All rights reserved.
//

#import "SCHomeCell.h"
#import "SCHomeBMSHView.h"
#import "SCHomeJFSCView.h"


CGFloat const k_home_cell_lr_out_space = 9;
CGFloat const k_home_cell_lr_in_space = 12;
CGFloat const k_home_cell_tb_space = 4;


#define bg_view_w          kScreenW - k_home_cell_lr_out_space*2

/*
 * 附近美食
 */
#define fjms_image_view_w       (bg_view_w - k_home_cell_lr_in_space*2 - 9*2) / 3
#define fjms_image_view_h       fjms_image_view_w*79/105
#define fjms_label_h            (k_fjms_cell_h - fjms_image_view_h - k_home_cell_lr_in_space*2)/4
#define fjms_shop_goods_view_h   fjms_image_view_h + fjms_label_h *2

/*
 * 精选酒店
 */
#define jxjd_image_view_w       (bg_view_w - k_home_cell_lr_in_space*2 - 9) / 2
#define jxjd_image_view_h       jxjd_image_view_w*79/160
#define jxjd_label_h            (k_jxjd_cell_h - jxjd_image_view_h - k_home_cell_lr_in_space*2)/3
#define jxjd_shop_goods_view_h   jxjd_image_view_h + jxjd_label_h

/*
 * 休闲娱乐
 */
#define xxyl_image_view_w       (bg_view_w - k_home_cell_lr_in_space*2 - 9*2) / 3
//#define xxyl_image_view_h       xxyl_image_view_w*79/105
#define xxyl_image_view_h       k_xxyl_cell_h - k_home_cell_tb_space*2 - k_home_cell_lr_in_space*2
#define xxyl_label_h            (k_xxyl_cell_h - k_home_cell_lr_in_space*2)/5


@interface SCHomeCell()

@property (nonatomic , strong) SCHomeBMSHView *bmsh_view;

/*
 * 附近美食
 */
@property (nonatomic , strong) UILabel *fjms_shop_name_label;
@property (nonatomic , strong) UILabel *fjms_shop_price_label;
@property (nonatomic , strong) UILabel *fjms_shop_distance_label;
@property (nonatomic , strong) UIView *fjms_shop_goods_view;

/*
 * 精选酒店
 */
@property (nonatomic , strong) UILabel *jxjd_shop_name_label;
@property (nonatomic , strong) UILabel *jxjd_shop_price_label;
@property (nonatomic , strong) UILabel *jxjd_shop_distance_label;
@property (nonatomic , strong) UIView *jxjd_shop_goods_view;


/*
 * 休闲娱乐
 */
@property (nonatomic , strong) UILabel *xxyl_shop_name_label;
@property (nonatomic , strong) UILabel *xxyl_shop_info_label;
@property (nonatomic , strong) UILabel *xxyl_shop_distance_label;
@property (nonatomic , strong) UILabel *xxyl_shop_info_r_label;
@property (nonatomic , strong) UILabel *xxyl_shop_info_l_label;
@property (nonatomic , strong) UIImageView *xxyl_shop_goods_image_view;

/*
 * 积分商城
 */
@property (nonatomic , strong) SCHomeJFSCView *jfsc_view;


@end

@implementation SCHomeCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self=  [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        if ([reuseIdentifier isEqualToString:@"SCHomeBMSHViewCell"]) {
            
            [self createSCHomeBMSHView];
            
        }else if ([reuseIdentifier isEqualToString:@"SCHomeFJMSViewCell"]){
           
            [self createSCHomeFJMSView];

        }else if ([reuseIdentifier isEqualToString:@"SCHomeJXJDViewCell"]){
            
            [self createSCHomeJXJDView];
  
        }else if ([reuseIdentifier isEqualToString:@"SCHomeXXYLViewCell"]){
            
            [self createSCHomeXXYLView];
            
        }else if ([reuseIdentifier isEqualToString:@"SCHomeJFSCViewCell"]){
            
            [self createSCHomeJFSCView];
            
        }
        
        
        
    }
    return self;
}

#pragma mark bmsh
-(void)createSCHomeBMSHView{
    
   self.bmsh_view = [[SCHomeBMSHView alloc] initWithFrame:CGRectMake(0, 0, kScreenW, k_bmsh_view_h)];
    self.bmsh_view.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.bmsh_view];
    
}

-(void)setHome_bmsh_array:(NSMutableArray *)home_bmsh_array{
    
    [self.bmsh_view setHome_bmsh_array:home_bmsh_array];
    
}

#pragma mark fjms
-(void)createSCHomeFJMSView{
    
    
    UIView *bg_view = [[UIView alloc] initWithFrame:CGRectMake(k_home_cell_lr_out_space, k_home_cell_tb_space, bg_view_w, k_fjms_cell_h - k_home_cell_tb_space*2)];
    bg_view.layer.masksToBounds = YES;
    bg_view.layer.cornerRadius = 2;
    bg_view.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:bg_view];
    
    [bg_view addSubview:self.fjms_shop_name_label];
    [bg_view addSubview:self.fjms_shop_distance_label];
    [bg_view addSubview:self.fjms_shop_price_label];
    [bg_view addSubview:self.fjms_shop_goods_view];
    
  
    [self.fjms_shop_name_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.top.mas_equalTo(k_home_cell_lr_in_space);
        make.height.mas_equalTo(fjms_label_h);
        make.right.mas_equalTo(self.fjms_shop_distance_label.mas_left);
    }];
    
    [self.fjms_shop_distance_label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.right.mas_equalTo(-k_home_cell_lr_in_space);
    make.bottom.mas_equalTo(self.fjms_shop_name_label.mas_bottom);
        make.height.mas_equalTo(fjms_label_h);
        make.width.mas_equalTo(100);
    }];
    
    [self.fjms_shop_price_label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.mas_equalTo(k_home_cell_lr_in_space);
      make.top.mas_equalTo(self.fjms_shop_name_label.mas_bottom);
        make.height.mas_equalTo(fjms_label_h);
        make.right.mas_equalTo(-k_home_cell_lr_in_space);
    }];
    
    [self.fjms_shop_goods_view mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.top.mas_equalTo(self.fjms_shop_price_label.mas_bottom);
        make.height.mas_equalTo(fjms_shop_goods_view_h);
        make.right.mas_equalTo(-k_home_cell_lr_in_space);
    }];
    
    [self createSCHomeFJMSViewSubByGoodsButton];
    
    
}

-(void)createSCHomeFJMSViewSubByGoodsButton{
    
    for (int i = 0; i < 3; i++) {
        
        UIButton *goods_button = [[UIButton alloc] init];
        goods_button.frame = CGRectMake(i * (fjms_image_view_w +9), 0, fjms_image_view_w, fjms_shop_goods_view_h);
        
        UIImageView *goods_image = [[UIImageView alloc] init];
        goods_image.frame = CGRectMake(0, 0, fjms_image_view_w, fjms_image_view_h);
        [goods_image sd_setImageWithURL:[NSURL URLWithString:@""] placeholderImage:[UIImage imageNamed:@""]];
        goods_image.layer.masksToBounds = YES;
        goods_image.layer.cornerRadius = 3;
        goods_image.backgroundColor = RGB(219, 52, 52);
        [goods_button addSubview:goods_image];
        
        CGFloat goods_lable_h = fjms_label_h * 0.9;
        
        UILabel *goods_name_lable = [[UILabel alloc] init];
        goods_name_lable.frame = CGRectMake(0, fjms_image_view_h, fjms_image_view_w, goods_lable_h);
        goods_name_lable.text = @"红烧狮子头";
        goods_name_lable.textAlignment = NSTextAlignmentLeft;
        goods_name_lable.font = [UIFont systemFontOfSize:11.0f];
        goods_name_lable.textColor = RGB(102, 102, 102);
        [goods_button addSubview:goods_name_lable];
        
        UILabel *goods_price_lable = [[UILabel alloc] init];
        goods_price_lable.frame = CGRectMake(0, fjms_image_view_h + goods_lable_h, fjms_image_view_w, goods_lable_h);
        goods_price_lable.text = @"¥100";
        goods_price_lable.textAlignment = NSTextAlignmentLeft;
        goods_price_lable.font = [UIFont systemFontOfSize:12.0f];
        goods_price_lable.textColor = RGB(219, 52, 52);
        [goods_button addSubview:goods_price_lable];
        
        [self.fjms_shop_goods_view addSubview:goods_button];
  
    }
    
}

-(UILabel *)fjms_shop_name_label{
    
    if (_fjms_shop_name_label == nil) {
        _fjms_shop_name_label = [[UILabel alloc] init];
        _fjms_shop_name_label.text = @"田师傅红烧肉店";
        _fjms_shop_name_label.font = [UIFont systemFontOfSize:16.0f];
        _fjms_shop_name_label.textColor = RGB(0, 0, 0);
        
    }
    return _fjms_shop_name_label;
}

-(UILabel *)fjms_shop_distance_label{
    
    if (_fjms_shop_distance_label == nil) {
        _fjms_shop_distance_label = [[UILabel alloc] init];
        _fjms_shop_distance_label.text = @">1500m";
        _fjms_shop_distance_label.font = [UIFont systemFontOfSize:11.0f];
        _fjms_shop_distance_label.textColor = RGB(167, 167, 167);
        _fjms_shop_distance_label.textAlignment = NSTextAlignmentRight;
        
    }
    return _fjms_shop_distance_label;
}

-(UILabel *)fjms_shop_price_label{
    
    if (_fjms_shop_price_label == nil) {
        _fjms_shop_price_label = [[UILabel alloc] init];
        _fjms_shop_price_label.text = @"人均：¥100起 附近最好吃的红烧肉，快来看看吧";
        _fjms_shop_price_label.font = [UIFont systemFontOfSize:11.0f];
        _fjms_shop_price_label.textColor = RGB(167, 167, 167);
        
    }
    return _fjms_shop_price_label;
}

-(UIView *)fjms_shop_goods_view{
    
    if (_fjms_shop_goods_view == nil) {
        _fjms_shop_goods_view = [[UIView alloc] init];
        
    }
    return _fjms_shop_goods_view;
}

#pragma mark jxjd
-(void)createSCHomeJXJDView{
    
    
    UIView *bg_view = [[UIView alloc] initWithFrame:CGRectMake(k_home_cell_lr_out_space, k_home_cell_tb_space, bg_view_w, k_jxjd_cell_h - k_home_cell_tb_space*2)];
    bg_view.layer.masksToBounds = YES;
    bg_view.layer.cornerRadius = 2;
    bg_view.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:bg_view];
    
    [bg_view addSubview:self.jxjd_shop_name_label];
    [bg_view addSubview:self.jxjd_shop_distance_label];
    [bg_view addSubview:self.jxjd_shop_price_label];
    [bg_view addSubview:self.jxjd_shop_goods_view];
    
    
    [self.jxjd_shop_name_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.top.mas_equalTo(k_home_cell_lr_in_space);
        make.height.mas_equalTo(fjms_label_h);
        make.right.mas_equalTo(self.jxjd_shop_distance_label.mas_left);
    }];
    
    [self.jxjd_shop_distance_label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.right.mas_equalTo(-k_home_cell_lr_in_space);
        make.bottom.mas_equalTo(self.jxjd_shop_name_label.mas_bottom);
        make.height.mas_equalTo(jxjd_label_h);
        make.width.mas_equalTo(100);
    }];
    
    [self.jxjd_shop_price_label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.top.mas_equalTo(self.jxjd_shop_name_label.mas_bottom);
        make.height.mas_equalTo(jxjd_label_h);
        make.right.mas_equalTo(-k_home_cell_lr_in_space);
    }];
    
    [self.jxjd_shop_goods_view mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.top.mas_equalTo(self.jxjd_shop_price_label.mas_bottom);
        make.height.mas_equalTo(jxjd_shop_goods_view_h);
        make.right.mas_equalTo(-k_home_cell_lr_in_space);
    }];
    
    [self createSCHomeJXJDViewSubByGoodsButton];
    
    
    
}

-(void)createSCHomeJXJDViewSubByGoodsButton{
    
    for (int i = 0; i < 2; i++) {
        
        UIButton *goods_button = [[UIButton alloc] init];
        goods_button.frame = CGRectMake(i * (jxjd_image_view_w +9), 0, jxjd_image_view_w, jxjd_shop_goods_view_h);
        
        UIImageView *goods_image = [[UIImageView alloc] init];
        goods_image.frame = CGRectMake(0, 0, jxjd_image_view_w, jxjd_image_view_h);
        [goods_image sd_setImageWithURL:[NSURL URLWithString:@""] placeholderImage:[UIImage imageNamed:@""]];
        goods_image.layer.masksToBounds = YES;
        goods_image.layer.cornerRadius = 3;
        goods_image.backgroundColor = RGB(219, 52, 52);
        [goods_button addSubview:goods_image];
        
        CGFloat goods_lable_h = jxjd_label_h * 0.9;
        
        UILabel *goods_name_lable = [[UILabel alloc] init];
        goods_name_lable.frame = CGRectMake(0, jxjd_image_view_h, jxjd_image_view_w / 2, goods_lable_h);
        goods_name_lable.text = @"大床房";
        goods_name_lable.textAlignment = NSTextAlignmentLeft;
        goods_name_lable.font = [UIFont systemFontOfSize:11.0f];
        goods_name_lable.textColor = RGB(102, 102, 102);
        [goods_button addSubview:goods_name_lable];
        
        UILabel *goods_price_lable = [[UILabel alloc] init];
        goods_price_lable.frame = CGRectMake(jxjd_image_view_w / 2, jxjd_image_view_h , jxjd_image_view_w / 2, goods_lable_h);
        goods_price_lable.text = @"¥100（特）";
        goods_price_lable.textAlignment = NSTextAlignmentRight;
        goods_price_lable.font = [UIFont systemFontOfSize:12.0f];
        goods_price_lable.textColor = RGB(219, 52, 52);
        [goods_button addSubview:goods_price_lable];
        
        [self.jxjd_shop_goods_view addSubview:goods_button];
        
    }
}

-(UILabel *)jxjd_shop_name_label{
    
    if (_jxjd_shop_name_label == nil) {
        _jxjd_shop_name_label = [[UILabel alloc] init];
        _jxjd_shop_name_label.text = @"桔子酒店";
        _jxjd_shop_name_label.font = [UIFont systemFontOfSize:16.0f];
        _jxjd_shop_name_label.textColor = RGB(0, 0, 0);
        
    }
    return _jxjd_shop_name_label;
}

-(UILabel *)jxjd_shop_distance_label{
    
    if (_jxjd_shop_distance_label == nil) {
        _jxjd_shop_distance_label = [[UILabel alloc] init];
        _jxjd_shop_distance_label.text = @">1500m";
        _jxjd_shop_distance_label.font = [UIFont systemFontOfSize:11.0f];
        _jxjd_shop_distance_label.textColor = RGB(167, 167, 167);
        _jxjd_shop_distance_label.textAlignment = NSTextAlignmentRight;
        
    }
    return _jxjd_shop_distance_label;
}

-(UILabel *)jxjd_shop_price_label{
    
    if (_jxjd_shop_price_label == nil) {
        _jxjd_shop_price_label = [[UILabel alloc] init];
        _jxjd_shop_price_label.text = @"酒店干净，无押金";
        _jxjd_shop_price_label.font = [UIFont systemFontOfSize:11.0f];
        _jxjd_shop_price_label.textColor = RGB(167, 167, 167);
        
    }
    return _jxjd_shop_price_label;
}

-(UIView *)jxjd_shop_goods_view{
    
    if (_jxjd_shop_goods_view == nil) {
        _jxjd_shop_goods_view = [[UIView alloc] init];
        
    }
    return _jxjd_shop_goods_view;
}

#pragma mark jxjd
-(void)createSCHomeXXYLView{
    
    UIView *bg_view = [[UIView alloc] initWithFrame:CGRectMake(k_home_cell_lr_out_space, k_home_cell_tb_space, bg_view_w, k_xxyl_cell_h - k_home_cell_tb_space*2)];
    bg_view.layer.masksToBounds = YES;
    bg_view.layer.cornerRadius = 2;
    bg_view.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:bg_view];
    
    [bg_view addSubview:self.xxyl_shop_name_label];
    [bg_view addSubview:self.xxyl_shop_distance_label];
    [bg_view addSubview:self.xxyl_shop_info_label];
    [bg_view addSubview:self.xxyl_shop_info_r_label];
    [bg_view addSubview:self.xxyl_shop_info_l_label];
    [bg_view addSubview:self.xxyl_shop_goods_image_view];
    
    
    [self.xxyl_shop_name_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.top.mas_equalTo(k_home_cell_lr_in_space);
        make.height.mas_equalTo(xxyl_label_h * 2);
        make.right.mas_equalTo(self.xxyl_shop_goods_image_view.mas_left);
    }];
    
    [self.xxyl_shop_info_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.top.mas_equalTo(self.xxyl_shop_name_label.mas_bottom);
        make.height.mas_equalTo(xxyl_label_h);
        make.right.mas_equalTo(self.xxyl_shop_distance_label.mas_left);
    }];
    
    [self.xxyl_shop_distance_label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.right.mas_equalTo(self.xxyl_shop_goods_image_view.mas_left).mas_offset(-k_home_cell_lr_in_space);
        make.bottom.mas_equalTo(self.xxyl_shop_info_label.mas_bottom);
        make.height.mas_equalTo(xxyl_label_h);
        make.width.mas_equalTo(100);
    }];
    
    [self.xxyl_shop_goods_image_view mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(k_home_cell_lr_in_space);
        make.height.mas_equalTo(xxyl_image_view_h);
        make.width.mas_equalTo(xxyl_image_view_w);
        make.right.mas_equalTo(-k_home_cell_lr_in_space);
    }];
    
    CGSize xxyl_shop_info_l_label_size = [self.xxyl_shop_info_l_label.text sizeWithAttributes:@{NSFontAttributeName:self.xxyl_shop_info_l_label.font}];
    CGSize xxyl_shop_info_r_label_size = [self.xxyl_shop_info_r_label.text sizeWithAttributes:@{NSFontAttributeName:self.xxyl_shop_info_r_label.font}];
    CGFloat xxyl_shop_info_l_label_w = xxyl_shop_info_l_label_size.width + 10;
    CGFloat xxyl_shop_info_r_label_w = xxyl_shop_info_r_label_size.width + 10;
    
    [self.xxyl_shop_info_l_label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.mas_equalTo(k_home_cell_lr_in_space);
        make.bottom.mas_equalTo(-k_home_cell_lr_in_space);
        make.height.mas_equalTo(xxyl_label_h);
        make.width.mas_equalTo(xxyl_shop_info_l_label_w);
    }];
    
  
    
    [self.xxyl_shop_info_r_label mas_makeConstraints:^(MASConstraintMaker *make) {
    make.left.mas_equalTo(self.xxyl_shop_info_l_label.mas_right).mas_offset(k_home_cell_lr_in_space);
        make.bottom.mas_equalTo(-k_home_cell_lr_in_space);
        make.height.mas_equalTo(xxyl_label_h);
        make.width.mas_equalTo(xxyl_shop_info_r_label_w);
    }];
    
   
}

-(UILabel *)xxyl_shop_name_label{
    
    if (_xxyl_shop_name_label == nil) {
        _xxyl_shop_name_label = [[UILabel alloc] init];
        _xxyl_shop_name_label.text = @"冉冉运动康复理疗中心";
        _xxyl_shop_name_label.font = [UIFont systemFontOfSize:16.0f];
        _xxyl_shop_name_label.textColor = RGB(0, 0, 0);
        
    }
    return _xxyl_shop_name_label;
}

-(UILabel *)xxyl_shop_distance_label{
    
    if (_xxyl_shop_distance_label == nil) {
        _xxyl_shop_distance_label = [[UILabel alloc] init];
        _xxyl_shop_distance_label.text = @">1500m";
        _xxyl_shop_distance_label.font = [UIFont systemFontOfSize:11.0f];
        _xxyl_shop_distance_label.textColor = RGB(167, 167, 167);
        _xxyl_shop_distance_label.textAlignment = NSTextAlignmentRight;
        
    }
    return _xxyl_shop_distance_label;
}

-(UILabel *)xxyl_shop_info_label{
    
    if (_xxyl_shop_info_label == nil) {
        _xxyl_shop_info_label = [[UILabel alloc] init];
        _xxyl_shop_info_label.text = @"颈肩理疗/腰椎修复";
        _xxyl_shop_info_label.font = [UIFont systemFontOfSize:11.0f];
        _xxyl_shop_info_label.textColor = RGB(167, 167, 167);
        
    }
    return _xxyl_shop_info_label;
}

-(UILabel *)xxyl_shop_info_l_label{
    
    if (_xxyl_shop_info_l_label == nil) {
        _xxyl_shop_info_l_label = [[UILabel alloc] init];
        _xxyl_shop_info_l_label.text = @"付费停车";
        _xxyl_shop_info_l_label.font = [UIFont systemFontOfSize:10.0f];
        _xxyl_shop_info_l_label.textColor = RGB(231, 157, 58);
        _xxyl_shop_info_l_label.layer.borderWidth = 1;
        _xxyl_shop_info_l_label.layer.masksToBounds = YES;
        _xxyl_shop_info_l_label.layer.cornerRadius = 8;
        _xxyl_shop_info_l_label.layer.borderColor = RGB(231, 157, 58).CGColor;
        _xxyl_shop_info_l_label.backgroundColor = [UIColor whiteColor];
        _xxyl_shop_info_l_label.textAlignment = NSTextAlignmentCenter;
        
    }
    return _xxyl_shop_info_l_label;
}

-(UILabel *)xxyl_shop_info_r_label{
    
    if (_xxyl_shop_info_r_label == nil) {
        _xxyl_shop_info_r_label = [[UILabel alloc] init];
        _xxyl_shop_info_r_label.text = @"免费Wi-Fi";
        _xxyl_shop_info_r_label.font = [UIFont systemFontOfSize:10.0f];
        _xxyl_shop_info_r_label.textColor = RGB(231, 157, 58);
        _xxyl_shop_info_r_label.layer.borderWidth = 1;
        _xxyl_shop_info_r_label.layer.masksToBounds = YES;
        _xxyl_shop_info_r_label.layer.cornerRadius = 8;
        _xxyl_shop_info_r_label.layer.borderColor = RGB(231, 157, 58).CGColor;
        _xxyl_shop_info_r_label.backgroundColor = [UIColor whiteColor];
        _xxyl_shop_info_r_label.textAlignment = NSTextAlignmentCenter;
        
    }
    return _xxyl_shop_info_r_label;
}

-(UIImageView *)xxyl_shop_goods_image_view{
    
    if (_xxyl_shop_goods_image_view == nil) {
        _xxyl_shop_goods_image_view = [[UIImageView alloc] init];
        _xxyl_shop_goods_image_view.layer.masksToBounds = YES;
        _xxyl_shop_goods_image_view.layer.cornerRadius = 3;
        _xxyl_shop_goods_image_view.backgroundColor =  RGB(219, 52, 52);
    }
    return _xxyl_shop_goods_image_view;
}

#pragma mark jfsc
-(void)createSCHomeJFSCView{
    
    self.jfsc_view = [[SCHomeJFSCView alloc] initWithFrame:CGRectMake(0, 0, kScreenW, k_jfsc_cell_h)];
    self.jfsc_view.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.jfsc_view];
    
}

@end
